;;==========================================================================
;; Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
;;==========================================================================

#include <bsp/bspcfg.h>
#include <kcfg.h>

    AREA |.text|,ALIGN=2,CODE, READONLY

;
;   Int32 __InterlockedExchange(PInt32 plTarget, Int32 lValue)
;   PVoid __InterlockedExchangePointer(PVoid *ppvTarget, PVoid pvValue)
;
    EXPORT __InterlockedExchange
    EXPORT __InterlockedExchangePointer

__InterlockedExchange
__InterlockedExchangePointer
    swp     r0, r1, [r0]

    mov     pc, lr


    END
